package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.BookTopicalMappingsDao;
import io.wdb.modules.generator.generator.entity.BookTopicalMappingsEntity;
import io.wdb.modules.generator.generator.service.BookTopicalMappingsService;



@Service("bookTopicalMappingsService")
public class BookTopicalMappingsServiceImpl implements BookTopicalMappingsService {
	@Autowired
	private BookTopicalMappingsDao bookTopicalMappingsDao;
	
	@Override
	public BookTopicalMappingsEntity queryObject(Long id){
		return bookTopicalMappingsDao.queryObject(id);
	}
	
	@Override
	public List<BookTopicalMappingsEntity> queryList(Map<String, Object> map){
		return bookTopicalMappingsDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return bookTopicalMappingsDao.queryTotal(map);
	}
	
	@Override
	public void save(BookTopicalMappingsEntity bookTopicalMappings){
		bookTopicalMappingsDao.save(bookTopicalMappings);
	}
	
	@Override
	public void update(BookTopicalMappingsEntity bookTopicalMappings){
		bookTopicalMappingsDao.update(bookTopicalMappings);
	}
	
	@Override
	public void delete(Long id){
		bookTopicalMappingsDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		bookTopicalMappingsDao.deleteBatch(ids);
	}
	
}
